package edu.csl.study.scala.basic
/**
 * 1.scala要求，不管是继承还是混入，必须有且仅有一个extends关键字.
 *   如果这里没有继承抽象类Teacher，那么写法需要这样：
 *   extends Dance with Drive
 */
class LiuTeacher   extends Teacher with Dance with Driver {
  def makeNote: String = {
    ???
  }

  def teach: Unit = {
    ???
  }
  //需要加override才不报错
   override def say()={
    

  }

  def balei: String = {
    println("dange--balei")
    "good"
  }

  def car(color: String): Unit = {
    println("driver--car")
  }

  def moto: Unit = {
    println("driver--moto")
  }
}